// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]

use std::env;
use dotenvy::dotenv;
use migration::{*};

#[tokio::main]
async fn main() {
    dotenv().ok().expect("dotenv");
    // sea-orm-cli generate entity --database-url sqlite://zxgg.db?mode=rwc  --output-dir entities/src  --with-serde both  --expanded-format
    let database = sea_orm::Database::connect(env::var("DATABASE_URL").unwrap()).await.unwrap();
    Migrator::up(&database,None).await.unwrap();
    tools_plat_lib::run().await;
}





